package itheima.com.Demo01.demo01.getsum;

import java.util.TreeSet;

public class Testclass {
    public static void main(String[] args) {
        TreeSet<Student> set = new TreeSet<>();
        Student s1 = new Student("zhangsan",80,90,40);
        Student s2 = new Student("lisi",70,85,55);
        Student s3 = new Student("wangwu",84,86,80);
        Student s4 = new Student("songliu",100,90,66);
        set.add(s1);
        set.add(s2);
        set.add(s3);
        set.add(s4);
        for (Student student : set) {
            System.out.println(student);
        }
    }
}
